﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master_General.Master" AutoEventWireup="true" CodeBehind="MantClientes.aspx.cs" Inherits="DynamicAuditor.MantClientes" %>

<%@ Register Assembly="ComponentArt.Web.UI" Namespace="ComponentArt.Web.UI" TagPrefix="ComponentArt" %>
<%@ Register Assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    Namespace="System.Web.UI.WebControls" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   
    <asp:LinkButton ID="LinkButton1" BorderWidth="0" runat="server" PostBackUrl="~/CrearCliente.aspx"><img src="Images/icon-folder.gif"  border=0 /> Crear Cliente</asp:LinkButton>
    <br />
    <br />
     
    
     <ComponentArt:Grid ID="Grid1" SkinID="ComponentGridBlue" RunningMode="Client"  CssClass="Grid"
        HeaderCssClass="GridHeader" FooterCssClass="GridFooter" GroupByTextCssClass="GroupByText"
        GroupingNotificationTextCssClass="GridHeaderText" ShowHeader="true" PageSize="15"
        PagerStyle="Slider" PagerTextCssClass="GridFooterText" PagerButtonWidth="41"
        PagerButtonHeight="22" SliderHeight="20" SliderWidth="150" SliderGripWidth="9"
        SliderPopupOffsetX="20" SliderPopupClientTemplateId="SliderTemplate" PreExpandOnGroup="true"
        GroupingPageSize="5" ImagesBaseUrl="images/" PagerImagesFolderUrl="images/pager/"
        TreeLineImagesFolderUrl="images/lines/" TreeLineImageWidth="22" TreeLineImageHeight="19"
        GroupingNotificationText="Listado de Clientes" Width="750" Height="450"
        runat="server" >
        <Levels>
            <ComponentArt:GridLevel ShowTableHeading="false" ShowSelectorCells="false" HeadingCellCssClass="HeadingCell"
                HeadingRowCssClass="HeadingRow" HeadingTextCssClass="HeadingCellText" DataCellCssClass="DataCell"
                RowCssClass="Row" AlternatingRowCssClass="AlternativeRow" SelectedRowCssClass="SelectedRow"
                GroupHeadingCssClass="GroupHeading" DataKeyField="IdCliente" SortAscendingImageUrl="asc.gif"
                SortDescendingImageUrl="desc.gif">
                <Columns>
                 
                    <ComponentArt:GridColumn DataField="IdCliente" HeadingText="Cliente" />
                    <ComponentArt:GridColumn DataField="Nombre" HeadingText="Nombre" />
                    <ComponentArt:GridColumn DataField="Descripcion" HeadingText="Descripción" />
                    <ComponentArt:GridColumn DataField="Contacto" HeadingText="Contacto" />
                    <ComponentArt:GridColumn DataField="Telefono" HeadingText="Teléfono" />
                    <ComponentArt:GridColumn DataField="Email" HeadingText="E-mail" />
                    <ComponentArt:GridColumn ColumnType="CheckBox" DataField="Activo" HeadingText="Activo" />
                    
                    <ComponentArt:GridColumn DataField="idCliente" HeadingText="Opciones" DataCellServerTemplateId="ThreadTemplate"  Width =80/> 
                    
                                     
                </Columns>

            </ComponentArt:GridLevel>
        </Levels>
        <ClientTemplates>
            <ComponentArt:ClientTemplate ID="SliderTemplate">
                <table class="SliderPopup" cellspacing="0" cellpadding="0" border="0">
                    <tr>
                        <td colspan="2" style="height: 14px; background-color: #757598;">
                            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                <tr>
                                    <td style="padding-left: 5px; color: white; font-family: verdana; font-size: 10px;">
                                        Pag. <b>## DataItem.PageIndex + 1 ##</b> de <b>## Grid1.PageCount ##</b>
                                    </td>
                                    <td style="padding-right: 5px; color: white; font-family: verdana; font-size: 10px;"
                                        align="right">
                                        Message <b>## DataItem.Index + 1 ##</b> of <b>## Grid1.RecordCount ##</b>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </ComponentArt:ClientTemplate>
        </ClientTemplates>
        
        
        <ServerTemplates>
            <ComponentArt:GridServerTemplate ID="ThreadTemplate">
                <Template>
                    <asp:LinkButton ID="LinkButton2" runat="server" OnClick ="Modificar" commandargument="&lt;%# Container.DataItem[&quot;idCliente&quot;] %&gt;"  Text= '<img src= "Images/modificar.gif" border=0 alt="Modificar"   />' > </asp:LinkButton>
                     <asp:LinkButton ID="LinkButton3" runat="server" OnClick ="Eliminar" commandargument="&lt;%# Container.DataItem[&quot;idCliente&quot;] %&gt;" Text= '<img src= "Images/deleted.gif" border=0 alt="Eliminar"   />'  ></asp:LinkButton>
                </Template>
            </ComponentArt:GridServerTemplate>
        </ServerTemplates>
    </ComponentArt:Grid>
</asp:Content>
